<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="content" tagdir="/WEB-INF/tags/content"%>
<title>文章选择器测试和演示页面</title>
<script type="text/javascript">
function myCallback(content){
	var returnString = "[Success]\r\n";
	returnString += "contentId:"+content.contentId+",";
	returnString += "contentTitle:"+content.contentTitle+",";
	returnString += "imageUrl:"+content.imageUrl;
	alert(returnString);
}
function myCallback2(contents){
	var returnString = "[Success]\r\n";
	for(var i=0; i<contents.length; i++){
		var content = contents[i];
		returnString +=i+":";
		returnString += "contentId:"+content.contentId+",";
		returnString += "contentTitle:"+content.contentTitle+",";
		returnString += "imageUrl:"+content.imageUrl+"\r\n";
	}	
	alert(returnString);
}
</script>

<input value="单个文章选择器" onclick="showDialogOfselector1()" type="button"/>
<content:contentSelector selectorId="selector1" callbackFunc="myCallback"/>

<input value="多个文章选择器" onclick="showDialogOfselector2()" type="button"/>
<content:contentSelector selectorId="selector2" callbackFunc="myCallback2" multiple="true"/>
